package cn.yunyichina.reservation.component.pay;

import cn.yunyichina.reservation.constant.OrderConst;
import cn.yunyichina.reservation.constant.PayConst;
import cn.yunyichina.reservation.vo.OrderVo;

/**
 * Created by Lullaby on 2016/9/3.
 */
public class BasePayService {

    /**
     * 判断订单是否符合支付条件
     *
     * @param orderVo
     * @return
     */
    boolean checkOrder(OrderVo orderVo) {
        Integer orderStatus = orderVo.getOrderStatus();
        Integer payStatus = orderVo.getPayStatus();
        if (OrderConst.ORDER_STATUS_CONFIRM == orderStatus && PayConst.PAY_STATUS_NOTPAY == payStatus) {
            return true;
        }
        return false;
    }

}
